package org.zsl2.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.zsl2.dao.ICustomerDAO;
import org.zsl2.entity.Customer;

@Service
/**
 *  用在业务逻辑层
 * */
/**
 *  相当于
 *     <bean class id  autowire = "byType"></bean>
 * */
public class CustomerService {

      @Autowired
      private ICustomerDAO customerDAO;

     public  void  addCustomer(Customer customer){
         //
         customerDAO.insert(customer);
         //
     }
}
